Rectal resection with diverting stoma